package com.vshining.cryptoki.jna.pkcs11t;

import com.sun.jna.NativeLong;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;

import java.util.Arrays;
import java.util.List;

/**
 * @author Shining Wang <shiningwang@vshining.com>
 */
@SuppressWarnings("unused")
public class CK_PBE_PARAMS extends Structure {
    Pointer pInitVector;
    Pointer pPassword;
    NativeLong ulPasswordLen;
    Pointer pSalt;
    NativeLong ulSaltLen;
    NativeLong ulIteration;

    @Override
    protected List getFieldOrder() {
        return Arrays.asList(
                "pInitVector",
                "pPassword",
                "ulPasswordLen",
                "pSalt",
                "ulSaltLen",
                "ulIteration"
        );
    }
}
